<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>markItUp! Universal markup editor</title>
<link rel="stylesheet" type="text/css" href="images/style.css" />
<!-- jQuery -->
<script type="text/javascript"
	src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
<!-- markItUp! -->
<script type="text/javascript" src="markitup/jquery.markitup.js"></script>
<!-- markItUp! toolbar settings -->
<script type="text/javascript" src="markitup/sets/default/set.js"></script>
<!-- markItUp! skin -->
<link rel="stylesheet" type="text/css"
	href="markitup/skins/markitup/style.css" />
<!--  markItUp! toolbar skin -->
<link rel="stylesheet" type="text/css"
	href="markitup/sets/default/style.css" />
</head>
<body>
	<script type="text/javascript">
	<!--
		$(document).ready(function() {
			// Add markItUp! to your textarea in one line
			// $('textarea').markItUp( { Settings }, { OptionalExtraSettings } );
			$('#markItUp').markItUp(mySettings);

			// You can add content from anywhere in your page
			// $.markItUp( { Settings } );	
			$('.add').click(function() {
				$.markItUp({
					openWith : '<opening tag>',
					closeWith : '<\/closing tag>',
					placeHolder : "New content"
				});
				return false;
			});

			// And you can add/remove markItUp! whenever you want
			// $(textarea).markItUpRemove();
			$('.toggle').click(function() {
				if ($("#markItUp.markItUpEditor").length === 1) {
					$("#markItUp").markItUpRemove();
					$("span", this).text("get markItUp! back");
				} else {
					$('#markItUp').markItUp(mySettings);
					$("span", this).text("remove markItUp!");
				}
				return false;
			});
		});
		-->

		function getEditContent() {
			var content = document.getElementById("markItUp").value;
			alert(content);
			return content;
		}

		/* 	function setEditContent() {
				document.getElementById("markItUp").value = "this is my test";
			} */
	</script>
	<p>
		<textarea id="markItUp" cols="80" rows="20">
&lt;h1&gt;Welcome on markItUp!&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;markItUp!&lt;/strong&gt; is a JavaScript plugin built on the jQuery library. It allows you to turn any textarea into a markup editor. Html, Textile, Wiki Syntax, Markdown, BBcode or even your own markup system can be easily implemented.&lt;/p&gt;
</textarea>
	</p>
</body>
</html>
